<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

/*Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});*/
Route::group(['namespace' => 'Api'], function () {
    Route::get('/login', 'AuthorizationsController@login');
    Route::get('test', 'AuthorizationsController@test');
});
/*Route::group(['middleware' => 'auth:api', 'namespace' => 'Api'], function() {
    Route::get('test', 'AuthorizationsController@test');
});*/

//Route::get('login', 'AuthorizationsController@login');
//Route::group(['middleware' => 'auth:api', 'namespace' => 'Api'],function () {

   // Route::get('test', 'AuthorizationsController@test');

   /* Route::get('products', 'ProductController@index');
    Route::get('products/{id}', 'ProductController@show');
    Route::post('products', 'ProductController@store');
    Route::put('products/{id}', 'ProductController@update');
    Route::delete('products/{id}', 'ProductController@destroy');*/
//});

Route::get('/users', function (Request $request) {
    return ["fuck"=>"go"];
});
